package ru.urfc.portal.ui.client.model.catalogs;

import ru.urfc.portal.ui.client.Style;

public abstract class UserState extends CatalogItemWithStyle {
	
	static public final UserState ACTIVE = new UserState(CODE_USER_STATE_ACTIVE, "активен") {
		@Override
		public String getStyleName(Style style) {
			return style.userActive();
		}
		
	};
	
	static public final UserState INVITED = new UserState(CODE_USER_STATE_INVITED, "приглашен") {
		@Override
		public String getStyleName(Style style) {
			return style.userInvited();
		}
		
	};
	
	static public final UserState DISABLED = new UserState(CODE_USER_STATE_DISABLED, "отключен") {
		@Override
		public String getStyleName(Style style) {
			return style.userDisabled();
		}
		
	};
	
	static public UserState[] values = {ACTIVE, INVITED, DISABLED}; 

	private UserState(String code, String text) {
		super(code, text);
	}
	
}
